public class LeapYear {
    public static void main(String[] args) {
        int a = 1000;
        for(a = 1000;a < 2000;a++) {
            if(a%100 == 0) {
                if(a%400 == 0) {
                    System.out.println(a+"是闰年");
                }
            } else if(a%4 == 0) {
                System.out.println(a+"是闰年");
            }
        }
    }
}
